package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.WaterDrainInfoPuDto;
import com.leadingsoft.pwxk.model.WaterDrainInfoPu;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class WaterDrainInfoPuConverter extends AbstractConverter<WaterDrainInfoPu, WaterDrainInfoPuDto> {

	@Override
	protected WaterDrainInfoPuDto toDtoActual(WaterDrainInfoPu model) {
		// TODO Auto-generated method stub

		WaterDrainInfoPuDto dto = new WaterDrainInfoPuDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		dto.setEmissioncon(model.getEmissioncon());
		dto.setWrwid(model.getWrwid());
		dto.setWrwname(model.getWrwname());

		return dto;
	}

	public void copyProperties(WaterDrainInfoPu model, WaterDrainInfoPuDto dto) {
		// model.setId(dto.getId());
		// model.setDataid(dto.getDataid());

	}

}
